<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="inc/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <%@ include file="inc/meta.jsp" %>
    <meta name="description" content="">
    <meta name="author" content="">
    <title>微信用户详情</title>
    <%@ include file="inc/css.jsp" %>
</head>
<body>

<div id="posts" class="wrapper">

    <%@ include file="inc/nav.jsp" %>

    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">微信用户管理</h1>
                <h4 style="margin-left: 10px;">——微信用户详情</h4>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <form class="form-horizontal">

                            <div class="form-group">
                                <label class="col-sm-2 control-label">昵称:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    ${wxUser.nickname}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">关注时间:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    ${fn:substring(wxUser.attentionTime, 0, 19)}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">账户:</label>

                                <div class="col-sm-10" style="margin-left: -10px;">
                                    <c:if test="${wxUser.accountList.size() == 0}">
                                        <p style="padding-top: 7px;margin-left: 10px">暂未绑定账户</p>
                                    </c:if>
                                    <c:forEach var="n" items="${wxUser.accountList}">
                                        <div style="border: 1px dashed #000000;margin: 10px;padding:8px;width: 50%;cursor: pointer;" onclick="alert(${n.id})">
                                            <span style="display:block; width:20%;margin-right: 15px;float: left">${n.name}</span>
                                            <span style="display:block; width:30%;float: left">${n.mobile}</span>
                                            <span style="display:block; width:50%;">${n.createTime}</span>
                                        </div>
                                    </c:forEach>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-6" style="text-align: center">
                                    <a href="backend/wxUser/index" class="btn btn-primary" role="button">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.panel-body -->

                </div>
                <!-- /.panel -->
            </div>
        </div>


    </div>
    <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<%@ include file="inc/footer.jsp" %>

</body>

</html>